﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TanHungViet.Helper.PaginatedList<TanHungViet.Web.Models.FileInfo>>" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="TanHungViet.Helper"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=ViewData["PageTitle"]%> - PHẦN MỀM XÂY DỰNG – TÂN HƯNG VIỆT – 0835.125.795
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% CultureInfo ci = new CultureInfo(Session["CultureInfo"].ToString());%>
    
    <div class="title-mainright">
	    <h2 class="text1">Danh sách tập tin - <%= ViewData["PageTitle"] %></h2>
    </div>
    
	<div class="content">
		<div class="top-box2"><img src='<%=Url.Content("~/Content/images/top-box2.jpg")%>'/> </div>		
			<div class="center-box2">
			    <div class="agents-left">
            <div class="titleagents">
                <span class="title_in"><%= ViewData["ViewName"] %></span>
                <div class="iconpng7">
                    <img src="<%=Url.Content("~/Content/images/icon20.gif")%>" alt="Download"></div>
                <span class="linkprint"></span>
            </div>
            <div class="bgabout">
                <div class="content_tab1">
                    <div class="content2">
                        
                        <div class="titledl">
                            <b>
                                <%= ViewData["PageTitle"] %>
                            </b>
                        </div>
                        <div class="tbdownload">
                            <table width="500" border="0" cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr class="top">
                                        <td align="left" style="height: 30px; font-weight: bold; padding-right: 5px;">
                                             <%= ResourceUtil.Instance.GetString("MoTa", ci)%> </td>
                                        <%--<td align="center" style="height: 30px; font-weight: bold; padding-right: 5px;">
                                            <%= ResourceUtil.Instance.GetString("NgayPhatHanh", ci)%></td>--%>
                                        <td align="center" style="height: 30px; font-weight: bold; padding-right: 5px;">
                                            <%= ResourceUtil.Instance.GetString("DangFile", ci)%></td>
                                        <td align="center" style="height: 30px; font-weight: bold; padding-right: 5px;">
                                            Download</td>
                                    </tr>
                                    <%foreach (var item in Model)
                                      { %>
                                      <tr class="clm">
                                        <td style="color: #000000;">
                                            <%= item.FileTitle %>
                                        </td>
<%--                                        <td width="95px" align="center" style="padding-left: 3px;">
                                            <%= item.PublishDate.Value.ToString("dd/MM/yyyy", new CultureInfo("vi-Vn")) %>
                                        </td>--%>
                                        <td width="63px" align="center" style="padding-left: 3px;">
                                            <%= item.FileExtension %>
                                        </td>
                                        <td width="70px" class="end">
                                            <span>
                                                <a target="_blank" href='<%= Url.Action("DownloadTapTin", new { code = item.FileCode }) %>'>
                                                    <img src="<%=Url.Content("~/Content/images/download24x24.gif")%>" alt=""/>
                                                </a> 
                                            </span>
                                            <span style="padding-top: 5px; padding-left: 5px; padding-right: 0px;">
                                                <%= item.CountDownloaded %> lượt
                                            </span>
                                        </td>
                                    </tr>
                                    <%} %>
                                </tbody>
                            </table>
                        </div>
                        
                    </div>
                    <div class="linkbt">
                        &nbsp;
                    </div>
                </div>
            </div>
        </div>

			</div>            	
	</div> 

</asp:Content>
